package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.eggs.*;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class EggsActivityBussiness {
    public static Map<Integer, EggsSceneConfig> getEggsSceneConfigMap(int activityId) {
        return DaoHelper.getEggsActivityConfigDaoImpl().getEggsSceneConfigMap(activityId);
    }

    public static Map<Integer, EggsClassRoomConfig> getEggsClassRoomConfigMap(int activityId) {
        return DaoHelper.getEggsActivityConfigDaoImpl().getEggsClassRoomConfigMap(activityId);
    }

    public static Map<Integer, EggsTestConfig> getEggsTestConfigMap(int activityId) {
        return DaoHelper.getEggsActivityConfigDaoImpl().getEggsTestConfigMap(activityId);
    }

    public static Map<Integer, EggsSongConfig> getEggsSongConfigMap(int activityId) {
        return DaoHelper.getEggsActivityConfigDaoImpl().getEggsSongConfigMap(activityId);
    }

    public static Map<Integer, EggsStoryConfig> getEggsStoryConfigMap(int activityId) {
        return DaoHelper.getEggsActivityConfigDaoImpl().getEggsStoryConfigMap(activityId);
    }

    public static EggsUserData getEggsUserData(int activityId, long userId) {
        return DaoHelper.getEggsUserDataDaoImpl().getEggsUserData(activityId, userId);
    }

    public static boolean addEggsUserData(EggsUserData data) {
        return DaoHelper.getEggsUserDataDaoImpl().add(data);
    }

    public static boolean updateEggsUserData(EggsUserData data) {
        return DaoHelper.getEggsUserDataDaoImpl().update(data);
    }
}
